<?php
namespace app\admin\Validate;

use think\Validate;

class Brand  extends  Validate
{
    protected $rule = [
        'brand_name'  =>  'require|unique:brand',
        'brand_url'  =>  'url',
        'brand_description'  =>  'min:4',
    ];

    protected $message = [
        'brand_name.require'  =>  '品牌名称必须填写',
        'brand_name.unique'  =>  '品牌名称不能重复',
        'brand_url.url'  =>  'url地址格式不符合',
        'brand_description.min'  => '品牌描述不能少于6个字符',

    ];


}
